package com.qzct.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.bind.annotation.RequestParam;

/**
 *  实体类。
 *
 * @author 闽闽
 * @since 2024-12-07
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("")
@Table(value = "tb_user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户
     */
    @Id(keyType = KeyType.Auto)

    private Integer uid;

    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名",required = true)
    private String username;

    /**
     * 用户密码
     */
    @ApiModelProperty(value = "用户密码",required = true)
    private String password;

    @ApiModelProperty("用户昵称")
    private String name;
    /**
     * 用户头像头像
     */
    @ApiModelProperty("用户头像头像")
    private String image;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    @Column(onInsertValue = "now()")
    private LocalDateTime createTime;

    /**
     * 联系方式
     */
    @ApiModelProperty("联系方式")
    private String telephone;

    @ApiModelProperty("年龄")
    private int age;

    @ApiModelProperty("性别")
    private int gender;

    @ApiModelProperty("邮箱")
    private String email;
}
